FROM java:8u111-alpine

MAINTAINER xrj4j <574635222@qq.com>

RUN echo 'Asia/Shanghai' >/etc/timezone

WORKDIR /app

EXPOSE 8800

ENV PROFILE=dev

ADD target/xrj4j-blog.jar /app/blog.jar

ENTRYPOINT ["sh", "-c", "java -Djava.security.egd=file:/dev/./urandom -jar blog.jar --spring.profiles.active=${PROFILE}"]

